/**
 * creat by linj uploadImgBase64
 */

@import "../../ui/src/styles/module/index.scss";
.cropper-tool-position {
    background: #000;
    height: 100%;
    left: 0;
    opacity: 0.3;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.cropper-tool {
    left: 0;
    position: fixed;
    top: 25%;
    width: 100%;
    z-index: 98889;
    .close-panel {
        color: #fff;
        font-weight: bolder;
        font-size: 24px;
        line-height: 10px;
        height: 15px;
        display: inline-block;
        margin-right: -5px;
        text-decoration: none;
    }
    .up-header {
        background-color: $themeCol;
        border-bottom: 1px solid $borderCol;
        color: #fff;
        font-size: 16px;
        height: 40px;
        line-height: 40px;
        padding: 0 20px;
    }
    .up-body {
        height: 310px;
        position: relative;
    }
    .mg-20 {
        margin: 20px;
    }
    .pd-20 {
        padding: 20px;
    }
    .fs-20 {
        font-size: 20px;
    }
    .cropper-tool-a {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        margin: auto;
        padding: 6px;
        position: relative;
        width: 800px;
    }
    .cropper-tool-b {
        background-color: #fff;
        margin: auto;
        position: relative;
    }
    .loading {
        background: rgba(213, 213, 213, 0.24);
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 999;
        .cover-img {
            color: #fff;
            font-size: 36px;
            text-align: center;
            width: 100%;
            >div {
                position: absolute;
                top: 50%;
                left: 50%;
                z-index: 1;
                transform: translate(-50%, -50%);
            }
        }
    }
    .show-tool {
        height: 100%;
        width: 60%;
        .cropper-img-fixed {
            margin: auto;
        }
    }
    .show-line {
        border-right: 1px solid $borderCol;
        height: 100%;
        left: 60%;
        position: absolute;
    }
    .show-pre {
        height: 100%;
        width: 40%;
        .show-pre-r {
            padding: 0 20px;
        }
        .name-img {
            font-size: 18px;
        }
        .img-preview {
            border: 1px solid $borderCol;
            height: 200px;
            margin-top: 20px;
            overflow: hidden;
            width: 200px;
        }
    }
    .up-footer {
        background-color: #fff;
        height: 60px;
    }
    .btn-grp {
        height: 60px;
        line-height: 60px;
        text-align: center;
        .confirm {
            background-color: $themeCol;
            color: #fff;
        }
        .cancel {
            background-color: #fff;
        }
    }
    .btn-grp a {
        border: 1px solid $borderCol;
        border-radius: 4px;
        cursor: pointer;
        display: inline-block;
        font-size: 16px;
        height: 34px;
        line-height: 34px;
        text-decoration: none;
        width: 90px;
    }
}


/*切割图片组件*/

.img-crop-tool {
    /*display: none;*/
    height: 320px;
    position: relative;
    .loading-cover {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0.6;
        z-index: 999;
        /*display: none*/
        background: black;
        .cover-img {
            width: 100%;
            position: relative;
            color: #fff;
            text-align: center;
            font-size: 30px;
            >div {
                position: absolute;
                top: 50%;
                left: 50%;
                z-index: 1;
                transform: translate(-50%, -50%);
            }
        }
    }
    table {
        width: 100%;
        tr {
            vertical-align: top;
            .cropper-img-course {
                width: 560px;
                height: 315px;
            }
            .show-tool {
                width: 560px;
            }
            .show-pre {
                padding: 0 0 0 30px;
                margin-top: 20px;
            }
            .name-img {
                font-size: 17px;
            }
            .img-preview {
                width: 263px;
                height: 148px;
                overflow: hidden;
                border: 1px solid #d9d9d9;
                margin-top: 20px;
            }
            .btn-grp {
                margin-top: 90px;
                text-align: center;
                a {
                    text-decoration: none;
                    display: inline-block;
                    padding: 4px;
                    border: 1px solid #cccccc;
                    border-radius: 3px;
                    font-size: 18px;
                    cursor: pointer;
                    width: 70px;
                    &.confirm {
                        background-color: #4493f7;
                        color: #fff;
                    }
                    &.cancel {
                        background-color: #fff;
                    }
                }
            }
        }
    }
}

.cropper-container {
    margin: auto;
}